﻿ @model P2PWeb.Controllers.AccountInfoDetail
@{
    ViewBag.Title = "Borrow";
}
@using P2PWeb.Common;
<link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" />
<link href="@Url.Content("~/Content/borrow.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.10.4.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")"></script>
<script  src="@Url.Content("~/scripts/app/citys.js")"  type="text/javascript" ></script>
<script src="@Url.Content("~/scripts/app/AccountInfoDetail.js")"  type="text/javascript" ></script>

<div class="main ">
    <div class="main_top"><span class="main_top_right"></span></div>
    <div class="ouheeMain_box">
        <div class="loan_box">
            <h2 class="content_title ml_neg_75 png">完善个人信息</h2>
        </div>
        <div class="imhint">
            请务必真实完善的填写资料.
   
        </div>  

        <div class="otit">
            工作单位信息<span>（请真实的填写您的工作单位信息！注：以下信息均为必填）</span>
        </div>

        @using (Html.BeginForm("UpdateAccountInfo", "Account"))
        { 
            <table class="omb30" cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody>
                    <tr>
                        <td class="td4">工作单位全称：</td>
                        <td>
                            @Html.TextBoxFor(m => m.WorkInfo.CompanyName, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.WorkInfo.CompanyName)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">工作单位地址：</td>
                        <td>
                            <div class="select_box oProvince">
                                @Html.DropDownList("WorkInfo.ProvincialID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.WorkInfo.ProvincialID == -1 } }, new { @class = "select_bg small_new province", curValue = Model.WorkInfo.ProvincialID })
                                @*                                <select name="WorkInfo.ProvincialID" curValue="@Model.WorkInfo.ProvincialID" id="WorkInfo_ProvincialID" class="select_bg small_new province">
                                </select>*@

                            </div>
                            <span class="zi">省</span>
                            <div class="select_box oProvince">
                                @Html.DropDownList("WorkInfo.CountyID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.WorkInfo.CountyID == -1 } }, new { @class = "select_bg small_new city", curValue = Model.WorkInfo.CountyID })
                                @*                                <select name="WorkInfo.CountyID" curValue="@Model.WorkInfo.CountyID" id="WorkInfo_CountyID" class="select_bg small_new city">
                                    <option value="-1" selected="selected">请选择</option>
                                </select>*@

                            </div>
                            <span class="zi">市</span>
                            <div class="select_box oProvince">
                                @Html.DropDownList("WorkInfo.CityID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.WorkInfo.CityID == -1 } }, new { @class = "select_bg small_new district", curValue = Model.WorkInfo.CityID })
                                @*                                <select name="WorkInfo.CityID" curValue="@Model.WorkInfo.CityID" id="WorkInfo_CityID" class="select_bg small_new district">
                                    <option value="-1" selected="selected">请选择</option>
                                </select>*@
                            </div>
                            <span class="zi">县</span>
                            @Html.ValidationMessageFor(m => m.WorkInfo.ProvincialID)
                            @Html.ValidationMessageFor(m => m.WorkInfo.CountyID)
                            @Html.ValidationMessageFor(m => m.WorkInfo.CityID)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(m => m.WorkInfo.AreaName, new { @class = "input_text3 ots oaddress",placeholder="地址请精确到门牌号，例：XX小区4号楼5-201" })
                            @Html.ValidationMessageFor(m => m.WorkInfo.AreaName)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">工作单位电话：</td>
                        <td>
                            @Html.TextBoxFor(m => m.WorkInfo.PhoneInAreaNumber, new { @class = "input_text3 ots oAreaCode",placeholder="区号"})
                            <span class="zi">-</span>
                            @Html.TextBoxFor(m => m.WorkInfo.PhoneNumber, new { @class = "input_text3 ots oPhoneNumber",placeholder="电话号码"})
                            <span class="zi">-</span>
                            @Html.TextBoxFor(m => m.WorkInfo.PhoneExtention, new { @class = "input_text3 ots oExt",placeholder="分区号"})

                            @Html.ValidationMessageFor(m => m.WorkInfo.PhoneInAreaNumber)
                            @Html.ValidationMessageFor(m => m.WorkInfo.PhoneNumber)
                            @Html.ValidationMessageFor(m => m.WorkInfo.PhoneExtention)

                        </td>
                    </tr>
                    <tr>
                        <td class="td4">本单位入职时间：</td>
                        <td class="working_time_td">
                            @Html.TextBoxFor(m => m.WorkInfo.WorkDate,"{0:yyyy-MM-dd}")
                            @Html.ValidationMessageFor(m => m.WorkInfo.WorkDate)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">所在部门：</td>
                        <td>
                            @Html.TextBoxFor(m => m.WorkInfo.Department, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.WorkInfo.Department)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">担任职务：</td>
                        <td>
                            @Html.TextBoxFor(m => m.WorkInfo.Job, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.WorkInfo.Job)
                        </td>
                    </tr>

                    <tr>
                        <td class="td4">单位性质：</td>
                        <td>
                            @Html.DropDownList("WorkInfo.CompanyType", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.CampanyType), (int)Model.WorkInfo.CompanyType, true), new { @class = "select_bg" })
                        </td>
                    </tr>
                </tbody>
            </table>




            <div class="otit">
                个人基本信息<span>(为了加快审核进度，请详细填写以下信息，注：以下信息均为必填)</span>
            </div>
            <table class="omb30" cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody>
                    <tr>
                        <td class="td4">性别：</td>
                        <td>
                            @Html.DropDownList("AccountInfo.Sex", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.SexType), (int)Model.AccountInfo.Sex, true), new { @class = "select_bg" })
                            @Html.ValidationMessageFor(m => m.AccountInfo.Sex)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">年龄：</td>
                        <td>
                            @Html.TextBoxFor(m => m.AccountInfo.Age, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.AccountInfo.Age)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">最高学历：</td>
                        <td>
                            <div class="select_box">
                                @Html.DropDownList("AccountInfo.Education", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.EducationType), (int)Model.AccountInfo.Education, true), new { @class = "select_bg" })
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">婚姻情况：</td>
                        <td>
                            <div class="select_box">
                                @Html.DropDownList("AccountInfo.Marital", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.MaritalType), (int)Model.AccountInfo.Marital, true), new { @class = "select_bg" })
                                @Html.ValidationMessageFor(m => m.AccountInfo.Marital)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">房产情况：</td>
                        <td>
                            <div class="select_box">
                                @Html.DropDownList("AccountInfo.Property", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.HouseInfoType), Model.AccountInfo.Property, true), new { @class = "select_bg" })
                                @Html.ValidationMessageFor(m => m.AccountInfo.Property)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">户籍地址：</td>
                        <td>
                            <div class="select_box oProvince">
                                @Html.DropDownList("AccountInfo.ProvincialID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.AccountInfo.ProvincialID == -1 } }, new { @class = "select_bg small_new province", curValue = Model.AccountInfo.ProvincialID })
                                @*                                <select name="AccountInfo.ProvincialID" id="AccountInfo_ProvincialID" curValue="@Model.AccountInfo.ProvincialID" class="select_bg small_new province">
                                </select>*@
                            </div>
                            <span class="zi">省</span><div class="select_box oProvince">
                                @Html.DropDownList("AccountInfo.CountyID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.AccountInfo.CountyID == -1 } }, new { @class = "select_bg small_new city", curValue = Model.AccountInfo.CountyID })
                                @*                                <select name="AccountInfo.CountyID" id="AccountInfo_CountyID" curValue="@Model.AccountInfo.CountyID" class="select_bg small_new city">
                                    <option value="-1" selected="selected">请选择</option>



                                </select>*@

                            </div>
                            <span class="zi">市</span><div class="select_box oProvince">
                                @Html.DropDownList("AccountInfo.CityID", new[] { new SelectListItem() { Text = "请选择", Value = -1 + "", Selected = Model.AccountInfo.CityID == -1 } }, new { @class = "select_bg small_new district", curValue = Model.AccountInfo.CityID })
                                @*                                <select name="AccountInfo.CityID" id="AccountInfo_CityID" curValue="@Model.AccountInfo.CityID" class="select_bg small_new district">
                                    <option value="-1" selected="selected">请选择</option>
                                </select>*@
                            </div>
                            <span class="zi">县</span>
                            @Html.ValidationMessageFor(m => m.AccountInfo.ProvincialID)
                            @Html.ValidationMessageFor(m => m.AccountInfo.CountyID)
                            @Html.ValidationMessageFor(m => m.AccountInfo.CityID)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">&nbsp;</td>
                        <td>
                            @Html.TextBoxFor(m => m.AccountInfo.AreaName, new { @class = "input_text3 ots oaddress" ,placeholder="地址请精确到门牌号，例：XX小区4号楼5-201"})
                            @Html.ValidationMessageFor(m => m.AccountInfo.AreaName)
                        </td>
                    </tr>
                    <tr>
                        <td class="td4">信用卡最高额度：</td>
                        <td>
                            @Html.TextBoxFor(m => m.AccountInfo.CreditQuota, new { @class = "input_text3 ots",placeholder="如无信用卡可填写“0”" })
                            @Html.ValidationMessageFor(m => m.AccountInfo.CreditQuota)
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="otit">
                联系人信息<span>(请认真填写您的联系人资料，以便我们顺畅的联系你,注：以下信息均为必填)</span>
            </div>

            <table class="omb30" cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody>
                    <tr>
                        <td class="td4">家庭联系人姓名：</td>
                        <td>
                            @Html.TextBoxFor(m => m.ContactInfo.FamilyContact, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.FamilyContact)
                            <div class="fr">
                                <span class="zi">手机/固话：</span>
                                @Html.TextBoxFor(m => m.ContactInfo.FamilyPhone)
                                @Html.ValidationMessageFor(m => m.ContactInfo.FamilyPhone)
                            </div>
                            <span class="zi">关系</span>
                            @Html.DropDownList("ContactInfo.FamilyRelation", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.FamilyMemberType), (int)Model.ContactInfo.FamilyRelation, true), new { @class = "select_bg" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.FamilyRelation)

                        </td>
                    </tr>
                    <tr style="display: none" class="notice_tr">
                        <td class="td4"></td>
                        <td></td>
                    </tr>



                    <tr>
                        <td class="td4">工作联系人姓名：</td>
                        <td>
                            @Html.TextBoxFor(m => m.ContactInfo.WorkContact, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.WorkContact)

                            <div class="fr">
                                <span class="zi">手机/固话：</span>
                                @Html.TextBoxFor(m => m.ContactInfo.WorkPhone)
                                @Html.ValidationMessageFor(m => m.ContactInfo.WorkPhone)
                            </div>
                            <span class="zi">关系</span>
                            @Html.DropDownList("ContactInfo.WorkRelation", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.WorkContact), (int)Model.ContactInfo.WorkRelation, true), new { @class = "select_bg" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.WorkRelation)
                        </td>
                    </tr>
                    <tr style="display: none" class="notice_tr">
                        <td class="td4"></td>
                        <td></td>
                    </tr>



                    <tr>
                        <td class="td4">其他联系人姓名：</td>
                        <td>
                            @Html.TextBoxFor(m => m.ContactInfo.OtherContact, new { @class = "input_text3 ots" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.OtherContact)
                            <div class="fr">
                                <span class="zi">手机/固话：</span>
                                @Html.TextBoxFor(m => m.ContactInfo.OtherPhone)
                                @Html.ValidationMessageFor(m => m.ContactInfo.OtherPhone)
                            </div>
                            <span class="zi">关系</span>
                            @Html.DropDownList("ContactInfo.OtherRelation", EnumHelper.ConverToSelectList(typeof(P2PWeb.Common.OtherContact), (int)Model.ContactInfo.OtherRelation, true), new { @class = "select_bg" })
                            @Html.ValidationMessageFor(m => m.ContactInfo.OtherRelation)
                        </td>
                    </tr>
                    <tr style="display: none" class="notice_tr">
                        <td class="td4"></td>
                        <td></td>
                    </tr>



                </tbody>
            </table>
            <div class="obtn02">
                <span id="submitBtn" class="onext">下一步</span><a id="backUrl" class="opre">返回</a>
            </div>
        }
    </div>
    <div class="main_bottom"><span class="main_bottom_right"></span></div>
</div>
